# 字典遍历 遍历key 遍历value 遍历item 遍历k-v
heros1 = {'及时雨':'宋江','玉麒麟':'卢俊义','花和尚':'鲁智深','小李广':'花荣'}
keys = heros1.keys()
for key in keys:
    print(key)

values = heros1.values()
for value in values:
    print(value)

items = heros1.items()
# 每个item是一个元组
for item in items:
    print(item)

for k,v in items:
    print(f"{k}->{v}")